package org.lgl.search.rabbitmq;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lgl
 * @date 2022/2/25 11:35 PM
 */
@Configuration
public class MqConfig {
    public static final String CANAL_QUEUE = "canal.queue";

    @Bean
    public Queue canalQueue() {
        return new Queue(CANAL_QUEUE, true);
    }
}
